<html layout:decorate="~{project/objectManage/object_list}" xmlns:layout="http://www.w3.org/1999/xhtml">
<div layout:fragment="object_list">
    <div class="main-body">
        <div id="toolbar" class="btn-group btn-group-sm ">
            <a type="button" class="btn btn-primary" onclick="editData('/project/objectManage/config_edit', 'id')">配置</a>
        </div>
        <table id="dataTable" data-url="/project/objectManage/config_data" data-page-list=[] data-striped="true"
               data-pagination="true" data-page-size="10" data-cache="false" data-toolbar-align="right">
        </table>
        <script>
            //设备状态
            var dataFormat_config = [{
                checkbox: true
            }, {
                field: 'id',
                title: 'id',
                visible: false
            }, {
                field: 'name',
                title: '模组名称',
                sortable: true
            }, {
                field: 'batteryPack',
                title: '所属电池包',
                sortable: true
            }, {
                field: 'project',
                title: '所属项目',
                sortable: true
            }, {
                field: 'detail',
                title: '详情',
                sortable: true
            }];
            window.onload = function () {
                getTable(dataFormat_config, "dataTable");
            };
        </script>
    </div>
</div>
</html>